﻿<?xml version="1.0" encoding="utf-8"?>
<log4net>
  <appender name="Console" type="log4net.Appender.ConsoleAppender">
    <layout type="log4net.Layout.PatternLayout">
      <!--conversionPattern value="%-4timestamp [%thread] %-5level %logger %ndc - %message%newline" /-->
      <conversionPattern value="%-4timestamp [%thread] %logger - %message%newline" />
    </layout>
  </appender>
  
  <appender name="File" type="log4net.Appender.RollingFileAppender">
    <file value="gastros-log.txt" />
    <appendToFile value="true" />
    <maximumFileSize value="100KB" />
    <maxSizeRollBackups value="2" />
    
    <layout type="log4net.Layout.PatternLayout">
      <conversionPattern value="%date - %message%newline" />
    </layout>
  </appender>
  
  <root>
    <level value="DEBUG" />
    <appender-ref ref="Console" />
    <appender-ref ref="File" />
  </root>

  <logger name="General">
    <level value="WARN"/>
  </logger>
  <logger name="Trace">
    <level value="WARN"/>
  </logger>
  <logger name="Dump">
    <level value="WARN"/>
  </logger>
</log4net>